package com.nuoniu.sibanyun.service.expenses;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nuoniu.sibanyun.entity.crm.CrmGoodsOrder;
import com.nuoniu.sibanyun.entity.expenses.ExpensesBalanceChangeRecord;
import com.nuoniu.sibanyun.entity.expenses.ExpensesBusinessOrder;
import com.nuoniu.sibanyun.entity.expenses.dto.ExpensesBalanceChangeRecordSearchDto;

/**
 * <p>
 * 费用中心-收支明细 服务类
 * </p>
 *
 * @author 小啊刚
 * @since 2022-05-06
 */
public interface IExpensesBalanceChangeRecordService extends IService<ExpensesBalanceChangeRecord> {

    /*********************************** 租户 开始 ***************************************/
    /**
     * 分页查询 收支明细
     * @param changeRecordSearchDto
     * @return
     */
    Page<ExpensesBalanceChangeRecord> pageList(ExpensesBalanceChangeRecordSearchDto changeRecordSearchDto);

    /*********************************** 租户 结束 ***************************************/

    /**
     * 新增 收支明细
     * @param changeRecord
     */
    void addRecord(ExpensesBalanceChangeRecord changeRecord);

    /**
     * 校验 收支明细记录
     * @param changeRecord
     */
    int checkRecord(ExpensesBalanceChangeRecord changeRecord);

    /**
     * 获取流水
     * @return
     */
    Integer getSerialNum(Integer companyId);

}
